TRAN()

erwin DM stores a number of property values in an encoded form that is not friendly for display purposes. Additionally, some properties contain macro code that is expanded to form a display value. If you retrieve the value from the property directly, you will get the raw value.

If the TRAN() function is applied to the column, the raw value is translated into a display value. The result is always a string. If this function is applied to a column that has no translated value, a string representation of the raw value is returned.

SELECT  NAME, NULL_OPTION_TYPE, TRAN(NULL_OPTION_TYPE)
FROM ATTRIBUTE

The TRAN() function can also be applied to the TYPE@ column to retrieve an English version of the type identifier, such as the class name:

SELECT TRAN(TYPE@), NAME, TYPE, TRAN(TYPE)
FROM ENTITY
UNION
SELECT TRAN(TYPE@), NAME, TYPE, TRAN(TYPE)
FROM MODEL
ORDER BY 2

Back to Top